// GLWidget.h
//

#include "OpenGL/Renderer.h"

#include <QGLWidget>
#include <QThread>

class GLWidget : public QGLWidget
{
public:
    GLWidget(QWidget *parent, QGLWidget *shareWidget = 0);
    ~GLWidget();

	void setRenderer();

    void startRendering();
    void stopRendering();

protected:
    void resizeEvent(QResizeEvent *event);
    void paintEvent(QPaintEvent *event);
    QSize sizeHint() const { return QSize(200, 200); }

private:
    //GLPainter glPainter;
    QThread glThread;
};